# -*- coding: utf-8 -*-

import tensorflow as tf

input1 = tf.constant(6.0)
input2 = tf.constant(2.0)
input3 = tf.constant(3.0)

add = tf.add(input1, input2)
mul = tf.multiply(add, input3)

place1 = tf.placeholder(tf.float32)
place2 = tf.placeholder(tf.float32)

output = tf.multiply(place1, place2)

with tf.Session() as sess:
    # Fetch操作
    result = sess.run([mul, add])
    print(result)

    # Feed操作
    result = sess.run(output, feed_dict={place1:[8.],place2:[6.]})
    print(result)
